package priv.lan.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: TODO
 * @author: lan
 * @date: 2021/12/3 19:50
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Scenic", description="景点对象")
public class Scenic implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "景点ID")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "景点名字")
    private String name;

    @ApiModelProperty(value = "景点类型")
    private String scenicType;

    @ApiModelProperty(value = "描述")
    private String scenicDescription;

    @ApiModelProperty(value = "图片url地址")
    private String scenicUrl;

    @ApiModelProperty(value = "地址")
    private String place;

    @ApiModelProperty(value = "评论id")
    private Integer commentsId;

    @TableField(select = false)
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime ;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
